package com.zhangpf.boot.entity;

import java.util.List;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

import lombok.Data;

@Data
@Document("teacher")
public class Teacher {
	
	@Id
	private String id;
	
	private String name;
	
	@DBRef
	private List<Student> stus;

}
